package cn.com.nes.site.entity.bo.callcenter;

import cn.com.nes.mybatis.callcenter.entity.HouseInfo;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 房屋保存模型
 */
@Data
public class HouseSaveBo {

    /**
     * 房屋id
     */
    private Long id;

    /**
     * 企业id
     */
    private Long companyId;

    /**
     * 行政区划代码
     */
    private String xzqhdm;

    /**
     * 地址
     */
    private String address;

    /**
     * 门牌号
     */
    private String mph;

    /**
     * 建筑面积
     */
    private BigDecimal structureArea;

    /**
     * 采暖面积
     */
    private BigDecimal heatingArea;

    /**
     * 建筑结构
     */
    private Integer buildingStructure;

    /**
     * 建筑层高
     */
    private BigDecimal build;

    /**
     * 外墙厚度
     */
    private BigDecimal wallThickness;

    /**
     * 外墙保温
     */
    private Integer wallKeepWarm;

    /**
     * 采暖末端
     */
    private Integer heatingTerminal;

    /**
     * 供暖方式
     */
    private Integer heatingMode;

    /**
     * 逻辑删除:   1 表示删除，0 表示未删除。
     */
    private Integer delete;

    /**
     * 创建时间
     */
    private Long gmtCreate;

    /**
     * 修改时间
     */
    private Long gmtModified;

    /**
     * 地点ID
     */
    private String ddId;

    /**
     * 来源 判断是否由小程序添加
     */
    private String source;

    public HouseInfo toHouseInfoDo() {
        HouseInfo houseInfo = new HouseInfo();
        houseInfo.setId(this.getId());
        houseInfo.setDdId(this.getDdId());
        houseInfo.setCompanyId(this.getCompanyId());
        houseInfo.setXzqhdm(this.getXzqhdm());
        houseInfo.setAddress(this.getAddress());
        houseInfo.setMph(this.getMph());
        houseInfo.setStructureArea(this.getStructureArea());
        houseInfo.setBuildingStructure(this.getBuildingStructure());
        houseInfo.setBuild(this.getBuild());
        houseInfo.setWallThickness(this.getWallThickness());
        houseInfo.setWallKeepWarm(this.getWallKeepWarm());
        houseInfo.setHeatingTerminal(this.getHeatingTerminal());
        houseInfo.setHeatingMode(this.getHeatingMode());
        houseInfo.setDeleted(this.getDelete());
        houseInfo.setGmtCreate(this.getGmtCreate());
        houseInfo.setGmtModified(this.getGmtModified());
        houseInfo.setSource(this.getSource());
        return houseInfo;
    }


}
